import react from 'react';
import { Outlet } from "react-router-dom";
import './index.css';
import Header from '../components/header/header';
import Nav from '../components/nav/nav';

export default class App extends react.Component{
    constructor(props){
        super(props)
        this.state={
        
        }
    }
    // 渲染完成
    componentDidMount(){
   
    }

    render(){
        return <div>
                   <Header></Header>
                   <Nav></Nav>
                   <div className='content'>
                        {/* 默认第一个子路由  home组件 */}
                        <Outlet></Outlet>
                   </div>
                   
               </div>
    }
}








